home *** CD-ROM | disk | FTP | other *** search
- shader()
- {
- sortweight("translucent14")
- pass()
- {
- Lighting()
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
- texture()
- {
- Image(%colortexture)
- addressfunc("clamp", "clamp", "clamp")
- }
- }
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", 0.00256, 0, 0, "const", 0.00256, 0, 0)
- texture()
- {
- Image("Grid.dds")
- addressfunc("wrap", "wrap", "wrap")
- filtering("anisotropic_mip_linear")
- anisotropy(8)
- }
- ColorOp("add", "texture", "current", "current")
- AlphaOp("arg1", "texture", "diffuse", "current")
- }
- AmbientColor(0.050, 0.050, 0.050, 1.000)
- DiffuseColor(1.000, 1.000, 1.000, 0.5000)
- SpecularColor(0.500, 0.500, 0.500, 1.000)
- EmissiveColor(0.000, 0.000, 0.000, 1.000)
- SpecularPow(20.000)
-
- BlendFunc("src_alpha", "inv_src_alpha")
- depthfunc("lequal", 0)
- }
-
- cull("ccw")
-
- }
-
-
-